<div class="users view">
<h2><?php  echo __d('users','User');?></h2>
	<dl>
		<dt><?php echo __d('users','Id'); ?></dt>
		<dd>
			<?php echo h($user['User']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('users','Username'); ?></dt>
		<dd>
			<?php echo h($user['User']['username']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('users','Created'); ?></dt>
		<dd>
			<?php echo h($user['User']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('users','Modified'); ?></dt>
		<dd>
			<?php echo h($user['User']['modified']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('users','Email'); ?></dt>
		<dd>
			<?php echo h($user['User']['email']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('users','First Name'); ?></dt>
		<dd>
			<?php echo h($user['User']['first_name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('users','Last Name'); ?></dt>
		<dd>
			<?php echo h($user['User']['last_name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('users','Address1'); ?></dt>
		<dd>
			<?php echo h($user['User']['address1']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('users','Address2'); ?></dt>
		<dd>
			<?php echo h($user['User']['address2']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('users','City'); ?></dt>
		<dd>
			<?php echo h($user['User']['city']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('users','State Province Region'); ?></dt>
		<dd>
			<?php echo h($user['User']['state_province_region']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('users','Zip Postal Code'); ?></dt>
		<dd>
			<?php echo h($user['User']['zip_postal_code']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('users','Group'); ?></dt>
		<dd>
			<?php echo $this->Html->link($user['Group']['name'], array('controller' => 'groups', 'action' => 'view', $user['Group']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
	
	
	<div class="related">
		<h3><?php echo __d('users','Related Posts');?></h3>
		<?php if (!empty($user['Post'])):?>
		<table cellpadding = "0" cellspacing = "0">
		<tr>
			<th><?php echo __d('users','Id'); ?></th>
			<th><?php echo __d('users','Name'); ?></th>
			<th><?php echo __d('users','Content'); ?></th>
			<th><?php echo __d('users','User Id'); ?></th>
			<th><?php echo __d('users','Status'); ?></th>
			<th><?php echo __d('users','Created'); ?></th>
			<th><?php echo __d('users','Modified'); ?></th>
			<th class="actions"><?php echo $this->Html->link(__d('users','New Post'), array('controller' => 'posts', 'action' => 'add'));?></th>
		</tr>
		<?php
			$i = 0;
			foreach ($user['Post'] as $post): ?>
			<tr onclick="document.location='<?php echo $this->Html->url( array('controller' => 'posts', 'action' => 'view', $post['id']),true);?>'">
				<td><?php echo $post['id'];?></td>
				<td><?php echo $post['name'];?></td>
				<td><?php echo $post['content'];?></td>
				<td><?php echo $post['user_id'];?></td>
				<td><?php echo $post['status'];?></td>
				<td><?php echo $post['created'];?></td>
				<td><?php echo $post['modified'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__d('users','View'), array('controller' => 'posts', 'action' => 'view', $post['id'])); ?>
					<?php echo $this->Html->link(__d('users','Edit'), array('controller' => 'posts', 'action' => 'edit', $post['id'])); ?>
					<?php echo $this->Form->postLink(__d('users','Delete'), array('controller' => 'posts', 'action' => 'delete', $post['id']), null, __d('users','Are you sure you want to delete # %s?', $post['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</table>
	<?php endif; ?>
	
	</div>
	<div class="related">
		<h3><?php echo __d('users','Related Domains');?></h3>
		<?php if (!empty($user['Domain'])):?>
		<table cellpadding = "0" cellspacing = "0">
		<tr>
			<th><?php echo __d('users','Id'); ?></th>
			<th><?php echo __d('users','Server Id'); ?></th>
			<th><?php echo __d('users','Serversip Id'); ?></th>
			<th><?php echo __d('users','Name'); ?></th>
			<th><?php echo __d('users','Descriptions'); ?></th>
			<th class="actions"><?php echo $this->Html->link(__d('users','New Domain'), array('controller' => 'domains', 'action' => 'add'));?></th>
		</tr>
		<?php
			$i = 0;
			foreach ($user['Domain'] as $domain): ?>
			<tr onclick="document.location='<?php echo $this->Html->url( array('controller' => 'domains', 'action' => 'view', $domain['id']),true);?>'">
				<td><?php echo $domain['id'];?></td>
				<td><?php echo $domain['server_id'];?></td>
				<td><?php echo $domain['serversip_id'];?></td>
				<td><?php echo $domain['name'];?></td>
				<td><?php echo $domain['descriptions'];?></td>

				<td class="actions">
					<?php echo $this->Html->link(__d('users','View'), array('controller' => 'domains', 'action' => 'view', $domain['id'])); ?>
					<?php echo $this->Html->link(__d('users','Edit'), array('controller' => 'domains', 'action' => 'edit', $domain['id'])); ?>
					<?php echo $this->Form->postLink(__d('users','Delete'), array('controller' => 'domains', 'action' => 'delete', $domain['id']), null, __d('users','Are you sure you want to delete # %s?', $domain['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</table>
	<?php endif; ?>

	</div>	
	
	
</div>
<?php echo $this->element('/menu/left')?>